
<div class="container-fluid">
    <div class="wrapper">

        <div class="panel" id="nav">
            <div class="panel-heading"><h3 class="panel-title">批量导入储位和预捡数量</h3></div>
            <div class="panel-body">
                <form action="__URL__/create_storage"  method="post" enctype="multipart/form-data" class="form-horizontal">

                    <div class="form-group">
                        <label  class="col-md-2">导入模板：</label>
                        <div class="col-md-6 col-sm-10" style="cursor:pointer; ">
                            <a id="download" class="icon-arrow-down">下载导入模板(支持xls,xlsx格式文件)</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2">导入:</label>
                        <div class="col-md-3 col-sm-10">
                            <input class="btn" type="file"    name="file"  value=""  style="width: 100%"  />
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-offset-2 col-md-6">
                            <input type="hidden" name="insert" value="insert">
                            <input class="btn btn-success" type="submit" name="" value="导入" />
                        </div>
                    </div>
                </form>


                <div>
                    <?php if(!empty($result)) echo $result;?>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $("#download").click(function () {
        var fileName="批量导入预捡数量储位模板";
        var list=new Array(["批次号"],["sku"],["账号"],["站点"],["虚拟SKU"],["sku名称"],["需求数量"],["储位"],
                ["预拣数量"],["是否退税"], ["销售员"],["采购员"],["要求到货日期"]);
        var list1= new Array(["P2017011003"],["DEAP001"],["Bpro-ES"],["US"],["***"],
                ["***"],["***"],["H12"],["50"],["是"],["***"],["***"],["yyyy-mm-dd"]);
        window.location.href ="Inbound/Prepareneeds/download?"+"&fileName="+fileName+"&list="+list+"&list1="+list1;
    });
</script>
